package com.ruoyi.project.system.geocode.controller;


import com.alibaba.fastjson.JSON;
import com.github.pagehelper.PageInfo;
import com.ruoyi.framework.web.domain.Ztree;
import com.ruoyi.project.system.dept.domain.Dept;
import com.ruoyi.project.system.geocode.domain.Geocode;
import com.ruoyi.project.system.geocode.service.GeocodeService;
import io.swagger.annotations.Api;
import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;


/**
 * 无
 *
 * @author lijing
 * @email 191237578@qq.com
 * @date 2019-03-11 15:31:30
 */
@Api(value = "无", description = "GeocodeController}")
@Controller
@RequestMapping("/geocode")
public class GeocodeController {
	@Autowired
	private GeocodeService geocodeService;

    @RequestMapping("/projectTreeData")
    @ResponseBody
    public List<Ztree> projectTreeData()
    {
        List<Ztree> ztrees = geocodeService.selectDeptTree(new Geocode());
        return ztrees;
    }

    @RequestMapping("/requiretreeData")
    @ResponseBody
    public List<Ztree> requiretreeData()
    {
        List<Ztree> ztrees = geocodeService.requireDeptTree(new Geocode());
        return ztrees;
    }


}
